package cn.yl.order.server.controller;


import cn.yl.order.server.entity.PayOrderRecord;
import cn.yl.order.server.service.PayOrderRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 支付订单状态日志表 前端控制器
 * </p>
 *
 * @author yl
 * @since 2022-04-22
 */
@RestController
@RequestMapping("/payOrderRecord")
public class PayOrderRecordController {

    @Autowired
    private PayOrderRecordService payOrderRecordService;

    @PutMapping("savePayOrderRecord")
    public void savePayOrderRecord(@RequestBody PayOrderRecord payOrderRecord) {
        this.payOrderRecordService.save(payOrderRecord);
    }
}

